import { httpInstance } from '@/utils/request'

interface VerifyProjectAPIData {
  project_id: string
  verify: string
  foreman_id?: string
  verify_desc?: string
}

interface VerifyProjectAPIResData {
  code: number
  data: null
  msg: string
  time: string
}

export function verifyProjectAPI(
  data: VerifyProjectAPIData,
  token: string,
) {
  return httpInstance.post<
    VerifyProjectAPIResData,
    VerifyProjectAPIData
  >(
    'api/Project/verifyProject',
    data,
    { headers: { token } },
  )
}
